package online.sharin.aix;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;

import online.sharin.aix.activity.LoginActivity;

public class SplashActivity extends BaseActivity {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);


        checkUpdate();
        makeConnection();


        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent();
                intent.setClass(SplashActivity.this, LoginActivity.class);
                startActivity(intent);
            }
        };

        Handler handler = new Handler();
        handler.postDelayed(runnable, 2000);

    }

    /**
     * 检查更新
     */
    private void checkUpdate() {

    }

    /**
     * 建立连接
     */
    private void makeConnection() {

    }
}
